package com.zzl.bonds.ticket.constant.type;

/**
 * 审批类型，1 企业审核，2 电子签章审核，3 开单审核，4 转单审核，5 融单审核，6 发票审核
 *
 * @author : gull
 * @date : 2022/2/28 15:29
 */
public enum ApproveLogTypeEnum {


    APPROVE_LOG_ENTERPRISE(1, "企业审核"),
    APPROVE_LOG_SIGN(2, "电子签章审核"),
    APPROVE_LOG_OPEN(3, "开单审核"),
    APPROVE_LOG_TRANSFER(4, "转单审核"),
    APPROVE_LOG_FINANCE(5, "融单审核"),
    APPROVE_LOG_INVOICE(6, "发票审核"),
    ;

    private Integer code;
    private String value;


    ApproveLogTypeEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public static String getValue(Integer code) {
        for (ApproveLogTypeEnum statusEnum : ApproveLogTypeEnum.values()) {
            if (statusEnum.code.equals(code)) {
                return statusEnum.value;
            }
        }
        return "";
    }


    public Integer getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
